<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>房间列表</title>

</head>
<body>

        <div class="rightinfo">

            <ul class="toolbar">
                <li class="click"><button th:onclick="|openAddUi()|">增加</button></li>
            </ul>

            <table class="tablelist">
                <thead>
                <tr>
                    <th><input name="" type="checkbox" value="" checked="checked"/></th>
                    <th>房间ID<i class="sort"></i></th>
                    <th>房间门牌号</th>
                    <th>房间楼层</th>
                    <th>房间预订状态</th>
                    <th>房间打扫状态</th>
                    <th>房间信息ID</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="table_item:${roomList_db}">
                    <td><input name="" type="checkbox" value=""/></td>
                    <td th:text="${table_item.roomId}"></td>
                    <td th:text="${table_item.doorPlate}"></td>
                    <td th:text="${table_item.roomFloor}"></td>
                    <td th:text="${table_item.roomOrderState}"></td>
                    <td th:text="${table_item.roomCleanState}"></td>
                    <td th:text="${table_item.roomInfoId}"></td>
                    <td>
                        <a href="#" th:href="@{/room/delete(roomId=${table_item.roomId})}" class="tablelink"> 删除</a>
                        <a href="#" th:href="@{/room/updateUI(roomId=${table_item.roomId})}" class="tablelink">修改</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
<script>
    function openAddUi() {
        xadmin.open("添加",'/room/addUI')
    }
</script>
</body>
</html>
